//
//  MPRMoreViewController.m
//  720PMPR
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 青菜君. All rights reserved.
//

#import "MPRMoreViewController.h"

@interface MPRMoreViewController ()<UITableViewDataSource, UITableViewDelegate>

@end

@implementation MPRMoreViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor orangeColor];
    _moreTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 70, SCREEN_WIDTH, SCREEN_HEIGHT - 120) style:(UITableViewStyleGrouped)];
    _moreTableView.delegate = self;
    _moreTableView.dataSource = self;
    _moreTableView.backgroundColor = [UIColor redColor];
    [self.view addSubview:_moreTableView];
}

#pragma mark - tableView 代理
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *reuseIdentifer = @"test";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifer];
    if (cell == nil)
    {
        cell = [[UITableViewCell alloc]initWithStyle:(UITableViewCellStyleSubtitle) reuseIdentifier:reuseIdentifer ];
    }
    cell.textLabel.text = @"231321";
    return cell;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    switch (section)
    {
        
        case 0:
            return 5;
            break;
        case 1:
            return 5;
            break;
        default:
            return 2;
            break;
    }
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 3;
}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
    switch (section)
    {
            
        case 0:
            return @"设置";
            break;
        case 1:
            return @"功能";
            break;
        default:
            return @"软件信息";
            break;
    }
}












- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
